/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package darknet.application.chat.spec;

import java.util.List;

/**
 *
 * @author yoyo
 */
public interface ObservableSession {

    /**
     * Add a chat observer.
     *
     * @param toAdd The chat observer to add.
     */
    void addSessionObserver(SessionObserver toAdd);

    /**
     * Remove a chat observer.
     *
     * @param toRemove The chat observer to remove.
     */
    void removeSessionObserver(SessionObserver toRemove);

    /**
     * Get all chat observers.
     * @return
     */
    List<SessionObserver> getSessionObservers();
}
